<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
    <title><?php echo ($page_name); ?></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="keywords" content=""/>
    <meta name="description"
          content=""/>
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">

    <meta name="format-detection" content="telephone=no"/>
    <link rel="stylesheet" href="/Public/css.css"/>
    
    
</head>
<body id="myaccount" promoter_id='<?php echo ($promoter_en["promoter_id"]); ?>'>
<script type="text/javascript">
    (function () {
        document.documentElement.style.fontSize = (document.body.offsetWidth/320) * 14 + 'px';
    })()
    var page_name = '<?php echo ($page_name); ?>';
</script>
<div class="header">
    <!--<a href="javascript:;" class="logo"></a>--><?php echo ($page_name); ?>
    <a href="javascript:history.back(-1);" class="backbtn_02"></a>
    <a id="back" href="/promoter/account" class="my_icon"></a>
</div>


<div class="content2">
    <div class="my_header">
        <span class="portrait"><img src="/Public/images/lb.jpg" alt=""/></span>
        <div class="my_info">
           <p><?php echo ($promoter_en["real_name"]); ?></p>
        </div>
        <a href="/promoter/scanjoin?share_code=<?php echo ($promoter_en["share_code"]); ?>"><div class="my_wechat"></div></a>
    </div>
    <div class="money_computer">
        <p class="mymoney m1">
            <span class="my_dt">帐户余额</span>
            <span class="my_num"><?php echo ($promoter_en["amount"]); ?></span>
        </p>
        <p class="mymoney m2">
            <span class="my_dt">可提现余额</span>
            <span class="my_num"><?php echo ($promoter_en["withdraw_amount"]); ?></span>
        </p>
    </div>
    
    <div class="my_list">
        <a class="my_nav01" href="/promoter/account">我的帐户</a>
        <?php if($isShowSubRevenueManager == 1): ?><a class="my_nav01" href="/promoter/subRevenueManager">分成比例管理</a><?php endif; ?>
        <a class="my_nav02" href="/order/orderlist">我的订单</a>
        <!--<a class="my_nav03" href="/index/noticelist">网站公告</a>-->
        
        <?php if($isShowSubRevenueManager == 1): ?><a class="my_nav03" href="/promoter/scanjoin">推荐成为推广人</a><?php endif; ?>
    </div>

    <div class="my_list">
		<a class="my_nav02" href="/Promoter/info?promoter_id=<?php echo ($promoter_en["promoter_id"]); ?>">个人信息</a>
        <a class="my_nav04" href="/Promoter/changePwd">修改密码</a>
    </div>


    <div class="loginout">
        <a href="#" class="loginout_btn">退出登录</a>
    </div>

</div>
<div class="fixnav">
    <a href="/admin/home" class=""><img src="/Public/images/menu_01.png" alt=""/><span>首页</span></a>
    <a href="/order/orderlist" class="focus"><img src="/Public/images/menu_02.png" alt=""/><span>所有订单</span></a>
    <a href="/promoter/center" class="active"><img src="/Public/images/menu_actiive_03.png" alt=""/><span>个人中心</span></a>
</div>



<script type="text/javascript" src="/Public/js/jquery-1.12.3.min.js"></script>
<!-- <script type="text/javascript" src="/Public/js/touch.js"></script> -->
<script type="text/javascript" src="/Public/js/ajaxService.js"></script>
<script type="text/javascript" src="/Public/js/common.js"></script>
<script type="text/javascript" src="/Public/js/wj.js"></script>
<script>
	var ServerConfig = eval(<?php echo ($ServerConfig); ?>);
</script> 


<script type="text/javascript">
    (function () {
        document.documentElement.style.fontSize = (document.body.offsetWidth/320) * 14 + 'px';
    })();
    
    $(document).ready(function(){
    	$('.loginout_btn').bind('click', function(){
    		
    		var result = AdminService.Logout();
    		
    		if(result.IsSuccess == 0){
    			alert(result.ErrorMsg);
    			return;
    		}
    		else{
    			location.reload();
    		}
    	});
    });
</script>


</body>
</html>